<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>管理系统</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  {:widget_st('layui','css')}
</head>
{:do_action('admin_head')}
<body>
  <div class="layui-fluid">
      <div class="layui-row layui-col-space15">
        <div class="layui-col-md8">
          <div class="layui-card">
            <div class="layui-card-body">
              <form class="layui-form info_tj" onclick="return false;" >
                <?php $form_widget = new \app\common\widget\FormPro();  ?>

                <?php if(isset($res['id'])){ ?>
                  <input type="hidden" name="id" value="{$res.id}">
                  <input type="hidden" name="pid" value="0">
                  {$form_widget->form_input(['title'=>'名称','name'=>'name','data'=>$res['name'],'theme'=>2])|raw}
                  {$form_widget->form_input(['title'=>'标识','name'=>'tag','data'=>$res['tag'],'theme'=>2])|raw}
                  {$form_widget->form_textarea(['title'=>'描述','name'=>'summary','data'=>$res['summary'],'theme'=>2])|raw}
                  {$form_widget->form_radio(['title'=>'状态','name'=>'status','data'=>$res['status'],'parm_data'=>['0'=>'关闭','1'=>'开启'],'theme'=>2])|raw}
                  <div class="layui-form-item">
                    <div class="layui-input-block">
                      <button class="layui-btn layui-btn-sm" onclick="tijiao_data('/admin/rests/menu_edit')"  lay-submit="" lay-filter="component-form-element">提交</button>
                    </div>
                  </div>
                <?php }else{ ?>
                  <input type="hidden" name="pid" value="0">
                  {$form_widget->form_input(['title'=>'标题','name'=>'name','data'=>'','theme'=>2])|raw}
                  {$form_widget->form_input(['title'=>'标识','name'=>'tag','data'=>'','theme'=>2])|raw}
                  {$form_widget->form_textarea(['title'=>'描述','name'=>'summary','data'=>'','theme'=>2])|raw}
                  {$form_widget->form_radio(['title'=>'状态','name'=>'status','data'=>'0','parm_data'=>['0'=>'关闭','1'=>'开启'],'theme'=>2])|raw}
                  <div class="layui-form-item">
                    <div class="layui-input-block">
                      <button class="layui-btn layui-btn-sm" onclick="tijiao_data('/admin/rests/menu_add')"  lay-submit="" lay-filter="component-form-element">提交</button>
                    </div>
                  </div>
                <?php } ?>
              </form>
            </div>
          </div>
        
          
          
        </div>
        
      </div>
    </div>

  {:widget_st('layui','js')}  
  {:widget_st('common','js')} 

  <script>
 layui.use(['form', 'upload'], function(){
    var $ = layui.$
    ,form = layui.form
    ,upload = layui.upload ;

    
    
  })
  </script>
</body>
</html>
{:do_action('admin_js')}